package com.corona.game;

import com.corona.Game;

/* compiled from: Action.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/Do3.class */
class Do3 extends Action {
    DoThis doThis;

    /* compiled from: Action.java */
    @FunctionalInterface
    /* loaded from: pokewilds.jar:com/pkmngen/game/Do3$DoThis.class */
    interface DoThis {
        void doThis();
    }

    public Do3(DoThis doThis, Action nextAction) {
        super(new Object[0]);
        this.doThis = doThis;
        this.nextAction = nextAction;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.doThis.doThis();
        game.actionStack.remove(this);
        game.insertAction(this.nextAction);
    }
}
